// 显示选择的文件名 - 使用原生JavaScript
document.addEventListener('DOMContentLoaded', function() {
    const fileInput = document.querySelector('.custom-file-input');
    if (fileInput) {
        fileInput.addEventListener('change', function() {
            const fileName = this.value.split('\\').pop();
            const label = this.nextElementSibling;
            if (label) {
                label.classList.add('selected');
                label.textContent = fileName;
            }
        });
    }
});